package com.gagakuai.spring.annonation;

import com.gagakuai.spring.mapper.MapperFactoryBean;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/*
 * @program: common-starters
 * @description: mapper扫描
 * @author: houhong
 * @create: 2023-07-15 23:01
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Repeatable(MapperScans.class)
@Import(MapperScannerRegistrar.class)
public @interface MapperScan {



    String sqlSessionFactoryRef() default "";

    String sqlSessionTemplateRef() default "";

    Class<? extends MapperFactoryBean> factoryBean() default MapperFactoryBean.class;
}